// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import promise from 'es6-promise'
import 'whatwg-fetch'
import './common/global'
import Vue from 'vue'
import App from './App'
// import Upload from 'element-ui/packages/upload'
import 'element-ui/lib/theme-default/index.css'

import router from './router'
// import { AlertPlugin, ToastPlugin, AjaxPlugin } from 'vux'
import AlertPlugin from 'vux/src/plugins/alert'
import ToastPlugin from 'vux/src/plugins/toast'
import AjaxPlugin from 'vux/src/plugins/ajax'

import Upload from 'element-ui/lib/upload'
import Cascader from 'element-ui/lib/cascader'
import wx from 'weixin-js-sdk'

// import AlloyFinger from 'alloyfinger/alloy_finger' // 手势库
// import AlloyFingerVue from 'alloyfinger/vue/alloy_finger.vue'
// Vue.use(AlloyFingerVue, {
//   AlloyFinger
// })

Vue.use(AlertPlugin)
Vue.use(ToastPlugin)
Vue.use(AjaxPlugin)
// Vue.use(AlloyFingerVue)
promise.polyfill()
// Vue.use(ElementUI)
Vue.use(Upload)
Vue.use(Cascader)
// Vue.component(Upload.name, Upload)
Vue.prototype.wx = wx
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})
